import java.math.BigInteger;


public class Assign implements Node {

	public String token = "<assign>";
	public Node id;
	public Node exp;
			
	public Assign(){
		//System.out.println(PSTree.Core_TK.getToken());
		PSTree.assign = true;
		this.id = new Id();
		PSTree.assign = false;
		int token = PSTree.Core_TK.getToken();
		if(token !=14){
			System.out.println("Error: missing \"=\" in assign");
		}
		PSTree.Core_TK.skipToken(); // skip = sign
		this.exp = new Exp();
	}

	@Override
	public void print(int indent) {
		
		id.print(indent);
		System.out.print(" = ");
		exp.print(indent);
		System.out.println(";");
	}

	
	public void execute() {

		
	}

	@Override
	public BigInteger intexecute() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean compexecute() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public String Stringexcec() {
		// TODO Auto-generated method stub
		return null;
	}
}
